# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information



project = 'VEL680_上位机说明'
copyright = '2025, BIN'
author = 'BIN'
release = '25.10.24'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [    
    'recommonmark',
    'sphinx_markdown_tables',
    'sphinx.ext.autodoc',
    'sphinx.ext.imgmath',
    'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'sphinx.ext.todo',
    'sphinx.ext.coverage',
    'sphinx.ext.mathjax'
    'sphinx.ext.viewcode',
    'sphinx_rtd_theme',]

templates_path = ['_templates']
exclude_patterns = []

pygments_style = 'sphinx'                                   # 代码语法高亮

language = 'zh_CN'

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
html_copy_source=False



extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.imgmath']

# 设置LaTeX引擎为xelatex（支持中文）
latex_engine = 'xelatex'

# 禁用xindy索引处理（避免兼容性问题）
latex_use_xindy = False

# 添加中文支持
latex_elements = {
    'papersize':'a4paper',
    'pointsize':'12pt',
    'preamble': r'''
    \usepackage[UTF8]{ctex}
    ''',
}
